//
//  BaseViewController.m
//  16CY
//
//  Created by dllo on 16/3/11.
//
//

#import "BaseViewController.h"

@interface BaseViewController ()

@end

@implementation BaseViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    
    //navigationController的颜色为红色
    self.navigationController.navigationBar.barTintColor=[UIColor colorWithRed:196/255.0 green:42/255.0 blue:43/255.0 alpha:1];
    //title的颜色为白色
    self.navigationController.navigationBar.titleTextAttributes = [NSDictionary dictionaryWithObject:[UIColor whiteColor] forKey:UITextAttributeTextColor];
    
    //在进入当前controller 的时候 , 找第一个响应的scrollView , 然后给这个是scrollview 一个 inset (上, 左, 下 , 右) 偏移
    self.automaticallyAdjustsScrollViewInsets = NO;
    self.navigationController.navigationBar.translucent = NO;
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
